package com.kaili.basic.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @Desc: 新增驾驶员
 * @author: renzhikun
 * @Time: 18-12-13 上午11:15
 * @Copyright: ©  杭州凯立通信有限公司 版权所有
 * @Warning: 本内容仅限于公司内部传阅, 禁止外泄或用于其它商业目的
 */
@Data
@ApiModel(description = "新增驾驶员Dto")
public class BaseDriverAddDTO {

    @ApiModelProperty("驾驶员ID")
    private Integer driverId;

    @ApiModelProperty("车牌号")
    private String carNumber;

    @ApiModelProperty("驾驶员编号")
    private String driverCode;

    @NotEmpty(message = "驾驶员名字不能为空")
    @ApiModelProperty("驾驶员名字")
    private String driverName;

    @NotNull(message = "联系电话不能为空")
    @ApiModelProperty("驾驶员性别")
    private Integer sex;

    @ApiModelProperty("驾驶证")
    @Length(min=0,max=25,message = "驾驶证长度不能超过25位")
    private String driveLicense;

    @ApiModelProperty("驾照类型")
    private String driveType;

    @NotEmpty(message = "电话不能为空")
    @ApiModelProperty("电话")
    private String phoneNumber;

    @ApiModelProperty("所属网点ID")
    private Integer siteId;

    @ApiModelProperty("地址")
    private String address;
}
